package bitbot.core;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class S {
	private final static SimpleDateFormat m_format = new SimpleDateFormat("YY/MM/dd HH:ss.SSS X");
	private final static long r = (new Random(System.currentTimeMillis())).nextLong();
	
	public static void log(String string) {
		String date = m_format.format(new Date(System.currentTimeMillis()) );
		System.out.println(r+ " _" +date + " :" + string);
	}

	public static void err(Exception e) {
		e.printStackTrace(System.out);
	}

	public static void err(String string) {
		log("Error:" +string );
	}

}
